﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Catering_Rules
{
    public partial class OutBoxInfo
    {
        private readonly Catering_Operation.OutBoxInfo dal = new Catering_Operation.OutBoxInfo();
        public OutBoxInfo() { }

        /// <summary>
        /// 添加发送表信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool AddOutBoxInfo(Catering_Model.OutBoxInfo model)
        {
            return dal.AddOutBoxInfo(model);
        }

        /// <summary>
        /// 删除一条发送表信息
        /// </summary>
        public bool DeleteOutBoxInfo(int ID)
        {
            return dal.DeleteOutBoxInfo(ID);
        }

        /// <summary>
        /// 批量删除数据
        /// </summary>
        /// <param name="whereClause">删除条件</param>
        /// <returns></returns>
        public bool DeleteOutBoxInfoList(string whereClause)
        {
            return dal.DeleteOutBoxInfoList(whereClause);
        }

        /// <summary>
        /// 得到一个发送表信息对象实体
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public Catering_Model.OutBoxInfo GetOutBoxInfoModel(int ID)
        {
            return dal.GetOutBoxInfoModel(ID);
        }

        /// <summary>
        /// 获得发送表信息数据列表
        /// </summary>
        public DataTable GetOutBoxInfoList(string strWhere)
        {
            return dal.GetOutBoxInfoList(strWhere);
        }

        /// <summary>
        /// 获得发送表信息数据列表数量
        /// </summary>
        public int GetOutBoxInfoListCount(string strWhere)
        {
            return dal.GetOutBoxInfoListCount(strWhere);
        }
    }
}
